﻿using System.Web.Mvc;
using Excell_On_Services.Infrastructure.Config;
using Excell_On_Services.Infrastructure.Extensions;
using Excell_On_Services.Models;

namespace Excell_On_Services.Controllers
{

    [HandleError]
    //[LogRequest]
    public class BaseController : Controller
    {
        //private ExcellOnServiceEntities data = new ExcellOnServiceEntities();
        //public Employee CurrentUser
        //{
        //    get
        //    {
        //        var principal = User as EnhancedPrincipal;
        //        return principal == null ? null : principal.Data;
        //    }
        //}

        //public ActionResult RedirectToLogin()
        //{
        //    return RedirectToAction("LogOn", "Account", new { returnUrl = Request.Path });
        //}

        //public BaseController()
        //{
        //    ViewData["Modules"] = data.Abouts;
        //}

    }
}
